package cn.iocoder.yudao.module.mybusiness.controller.admin;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.mybusiness.domain.ProductionRecord;
import cn.iocoder.yudao.module.mybusiness.domain.Task;
import cn.iocoder.yudao.module.mybusiness.param.RecordParam;
import cn.iocoder.yudao.module.mybusiness.param.TaskParam;
import cn.iocoder.yudao.module.mybusiness.service.RecordService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@RestController
@RequestMapping("/record")
public class RecordController {


    @Autowired
    private RecordService recordService;


    @GetMapping("/getList")
    @Operation(summary = "获取生产列表")
//    @PermitAll
    public CommonResult<PageResult<ProductionRecord>> getList(RecordParam recordParam){
        PageResult<ProductionRecord> pageResult = recordService.getList(recordParam);
        return success(pageResult);
    }
}
